package hash

import (
	"crypto/sha256"
	"encoding/hex"
)

type Mysha256N struct {
	Pos int
}

func (mysha256 *Mysha256N) SetAlog([]string) {

}
func (allhash *Mysha256N) GetBytesHash(data []byte) string {

	return ""
}
func (mysha256 *Mysha256N) SetN(n int) {
	mysha256.Pos = n
}
func (mysha256 *Mysha256N) GetStringHash(datastr string) string {
	var laststr string
	laststr = datastr
	for i := 0; i < mysha256.Pos; i++ {
		myhash := sha256.New()
		myhash.Write([]byte(laststr))
		bs := myhash.Sum(nil)
		laststr = hex.EncodeToString(bs)
	}
	return laststr
}
func (mysha256 *Mysha256N) GetFileHash(filepath string) string {

	return ""
}
func (mysha256 *Mysha256N) GetFiledirHashName(filedirpath string) string {

	return ""
}
func (mysha256 *Mysha256N) GetFiledirHashContent(filedirpath string) string {
	return ""
}
